package com.gp.ssmplus.business.service.impl;

import com.gp.ssmplus.base.core.mybatis.base.service.impl.BaseServiceImpl;
import com.gp.ssmplus.base.core.mybatis.entity.EntityMap;
import com.gp.ssmplus.base.core.mybatis.model.PageModel;
import com.gp.ssmplus.base.core.mybatis.model.ResultBody;
import com.gp.ssmplus.base.core.mybatis.query.CriteriaQuery;
import com.gp.ssmplus.business.entity.GpAccount;
import com.gp.ssmplus.business.mapper.GpAccountMapper;
import com.gp.ssmplus.business.service.GpAccountService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author gp
 * @since 2020-02-23
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class GpAccountServiceImpl extends BaseServiceImpl<GpAccountMapper, GpAccount> implements GpAccountService {
    @Override
    public ResultBody pageList(PageModel pageModel) {
        CriteriaQuery<EntityMap> cq = new CriteriaQuery(pageModel, GpAccount.class);
        cq.select(GpAccount.class, "*");
        return pageList(cq);
    }
}
